﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Events/201205/MP/BaseSelf.Master" AutoEventWireup="true" CodeBehind="Question.aspx.cs" Inherits="SuuntoWebsite.Events._201205.Question" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="server">在线问卷</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head_Meta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Head_Css" runat="server">
<link href="./CSS/default.css" type="text/css" rel="stylesheet"/>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Head_Script" runat="server">

</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Body_Top" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Body_Content" runat="server">
<div class="Container" style=" background:url('images/bg2.jpg') right bottom no-repeat;">
    <div style=" margin:0 auto; width:900px; height:250px; background:url('images/Question.jpg') no-repeat;">
        <div style=" padding:40px; font-size:30px; line-height:100%; font-weight:bold; color:#ffffff;">SUUNTO AMBIT<br />THE GPS FOR EXPLORERS</div>
        <div style="color:#ffffff; padding:0 20px; width:860px;">
             --AMBIT 拓野系列 GPS成就专业户外锻炼：<br />
            在运动中，只有保持最佳状态才能达到最巅峰。SUUNTO拓野系列具有先进的实时心率测量和最大锻炼效果功能。恢复时间提示你下一步行动的体力状态。比如：在运动途中需要取消锻炼，可以使用线路点功能指导你回到原点。
        </div>
    </div>
    <div style=" margin:20px auto;">
    <div style=" width:660px; float:left;">
    <h2>填写网络问卷</h2>
    
    1. 您是否之前有购买过SUNNTO产品？<br />
    <input type="radio" name="txbBuy" id="txbBuy1" value="1" /><label for="txbBuy1">没有</label>
    <input type="radio" name="txbBuy" id="txbBuy2" value="1" /><label for="txbBuy2">有</label> <input type="text" disabled="disabled" id="textBuy" value="" name="txBuy3" size="50" /><br />
    *如果有，请问购买的SUNNTO产品的名称、型号、渠道（线上、线下）<br /><br />
    
    2.    您从何种渠道知道SUNNTO品牌及产品信息的？<br/>
    <input type="checkbox" name="ckbKnow" id="ckbKnow1" value="2"/><label for="ckbKnow1">微博</label>
    <input type="checkbox" name="ckbKnow" id="ckbKnow2" value="2"/><label for="ckbKnow2">网站</label>
    <input type="checkbox" name="ckbKnow" id="ckbKnow3" value="2"/><label for="ckbKnow3">报纸杂志</label>
    <input type="checkbox" name="ckbKnow" id="ckbKnow4" value="2"/><label for="ckbKnow4">户外广告</label>
    <input type="checkbox" name="ckbKnow" id="ckbKnow5" value="2"/><label for="ckbKnow5">商场店铺</label>
    <input type="checkbox" name="ckbKnow" id="ckbKnow6" value="2"/><label for="ckbKnow6">朋友推荐</label><br/>
    <input type="checkbox" name="ckbKnow" id="ckbKnow7" value="2"/><label for="ckbKnow7">其他</label><input type="text" disabled="disabled" id="textKnow" value="" name="ckbKnow8" size="50"/><br/><br/>
    
    
    3. 您从何种渠道知道此次活动的信息？<br />
    <input type="radio" name="txbKnow" id="txbKnow1" value="3" /><label for="txbKnow1">SUUNTO 官方微博</label>
    <input type="radio" name="txbKnow" id="txbKnow2" value="3" /><label for="txbKnow2">SUUNTO官网</label><br/>
    <input type="radio" name="txbKnow" id="txbKnow3" value="3" /><label for="txbKnow3">其他</label><input type="text" id="textKnow2" value="" disabled="disabled" name="txbKnow4" size="50"/><br /><br />

    
    4. 您喜欢AMBIT的功能是<br />
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT1" value="4" /><label for="txbAMBIT1">GPS</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT2" value="4" /><label for="txbAMBIT2">三维指南针</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT3" value="4" /><label for="txbAMBIT3">高度气压计</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT4" value="4" /><label for="txbAMBIT4">温度显示</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT5" value="4" /><label for="txbAMBIT5">心率监测</label><br />
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT6" value="4" /><label for="txbAMBIT6">在线运动日志及数据分析</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT7" value="4" /><label for="txbAMBIT7">锻炼中步伐和速度的反馈</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT8" value="4" /><label for="txbAMBIT8">最大锻炼效果--PTE和体能恢复时间</label><br />
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT9" value="4" /><label for="txbAMBIT9">手动和自动圈数计时</label>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT10" value="4" /><label for="txbAMBIT10">防水功能</label><br/>
    <input type="checkbox" name="txbAMBIT" id="txbAMBIT11" value="4" /><label for="txbAMBIT11">其他</label><input type="text" disabled="disabled" id="textAMBIT" value="" name="txbAMBIT12" size="50"/><br /><br />



    5. 您喜欢从事的运动是<br />
    <input type="checkbox" name="txbSports" id="txbSports1" value="5" /><label for="txbSports1">健身</label>
    <input type="checkbox" name="txbSports" id="txbSports2" value="5" /><label for="txbSports2">跑步</label>
    <input type="checkbox" name="txbSports" id="txbSports3" value="5" /><label for="txbSports3">自行车</label>
    <input type="checkbox" name="txbSports" id="txbSports4" value="5" /><label for="txbSports4">游泳</label>
    <input type="checkbox" name="txbSports" id="txbSports5" value="5" /><label for="txbSports5">山地车</label>
    <input type="checkbox" name="txbSports" id="txbSports6" value="5" /><label for="txbSports6">竞速跑</label><br />
    <input type="checkbox" name="txbSports" id="txbSports7" value="5" /><label for="txbSports7">徒步</label>
    <input type="checkbox" name="txbSports" id="txbSports8" value="5" /><label for="txbSports8">滑雪</label>
    <input type="checkbox" name="txbSports" id="txbSports9" value="5" /><label for="txbSports9">登山</label>
    <input type="checkbox" name="txbSports" id="txbSports10" value="5" /><label for="txbSports10">野外滑雪</label><br/>
    <input type="checkbox" name="txbSports" id="txbSports11" value="5" /><label for="txbSports11">其他</label><input type="text" disabled="disabled" id="textSport" value="" name="txbSports12" size="50"/><br /><br />

    6. 您希望在商场中的哪个区域能有SUUNTO产品专柜？<br />
    <input type="radio" name="txbArea" id="txbArea1" value="6" /><label for="txbArea1">钟表产品区域</label>
    <input type="radio" name="txbArea" id="txbArea2" value="6" /><label for="txbArea2">男装产品区域</label>
    <input type="radio" name="txbArea" id="txbArea3" value="6" /><label for="txbArea3">运动产品区域</label>
    <input type="radio" name="txbArea" id="txbArea4" value="6" /><label for="txbArea4">数码产品区域</label>

    <br /><br />
    <input type="image" src="images/submit.gif" value="" style=" width:66px; height:25px;" align="absmiddle" />
    </div>
        <div style=" width:200px; float:right; padding:10px; border:1px #666666 solid; background:#333333;">
            <div style=" display:block; border-bottom:1px #666666 dotted;">
            用户：<strong><%=userName %></strong>
            </div>
            订购说明<br />
            1）填写客户基本信息 <br />
            2）完成网络问卷 <br />
            3）挑选产品 <br />
            4）选择取货商场地点<br />
            5）预定并在网络支付200元定金 <br />
            6）获取网络预定“取货校验码”（系统将自动发送到客户邮箱中）<br />
            7）在通知取货的时间内，凭“取货校验码”到所选择的取货商场支付余款 <br />
            8）成功提取货物，并当场免费获取飞利浦太阳能充电器一个
        </div>
    </div>
</div>

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Body_Foot" runat="server">
<script type="text/javascript" src="./Scripts/artDialog.js"></script>
<script type="text/javascript">
function windowsShow(content) {
	art.dialog({
			fixed: true,
			lock: true,
			title:"提示",
			content: content,
			width: 300,
			height: 30,
			okValue:'确定',
			ok: function() {}
		});
}
$(function() {
	$("input[type=image]").live("click", function() {
		var buy = $("input[name='txbBuy']:checked+label").html();
		var know = $("input[name='ckbKnow']:checked+label");
		var tKnow = $("input[name='txbKnow']:checked+label").html();
		var ambit = $("input[name='txbAMBIT']:checked+label");
		var sport = $("input[name='txbSports']:checked+label");
		var area = $("input[name='txbArea']:checked+label").html();
		var knowStr = "", ambitStr = "", sportStr = "";
		$.each(know, function(i, n) {
			knowStr += $(n).html() + ",";
		});
		$.each(ambit, function(i, n) {
			ambitStr += $(n).html() + ",";
		});
		$.each(sport, function(i, n) {
			sportStr += $(n).html() + ",";
		});

		if (knowStr == "" || ambitStr == "" || sportStr == "" || buy == null || tKnow == null || area == null) {
			windowsShow("请您完成网络问卷的填写！");return false;
		}
		else {
			if ($("#ckbKnow7").attr("checked") == true) knowStr += $("#textKnow").val();
			if ($("#txbBuy2").attr("checked") == true) buy += $("#textBuy").val();
			if ($("#txbAMBIT11").attr("checked") == true) ambitStr += $("#textAMBIT").val();
			if ($("#txbSports11").attr("checked") == true) sportStr += $("#textSport").val();
			if ($("#txbKnow3").attr("checked") == true) tKnow += ","+$("#textKnow2").val();
			$.post("./Handler/Event.ashx", { "flag": "answer", "answer": buy + "|" + knowStr + "|" + tKnow + "|" + ambitStr + "|" + sportStr + "|" + area }, function(msg) {
				if (msg == "true")
					document.location.href = "./selection<%=rewrite %>";
				else
					if (confirm("提交失败，重新刷新本页面？")) location.reload(location.href);
			}, "html");
		}
	});
	$("input[name='txbBuy']").live("click", function() { if ($("#txbBuy1").attr("checked") == false) $("#textBuy").removeAttr("disabled").focus();else $("#textBuy").attr("disabled", "disabled").val(""); });
	$("input[name='txbKnow']").live("click", function() { if ($("#txbKnow3").attr("checked") == true) $("#textKnow2").removeAttr("disabled").focus();else $("#textKnow2").attr("disabled", "disabled").val(""); });
	$("#ckbKnow7").live("click", function() { if ($("#ckbKnow7").attr("checked") == true) $("#textKnow").removeAttr("disabled").focus();else $("#textKnow").attr("disabled", "disabled").val(""); });
	$("#txbAMBIT11").live("click", function() { if ($("#txbAMBIT11").attr("checked") == true) $("#textAMBIT").removeAttr("disabled").focus();else $("#textAMBIT").attr("disabled", "disabled").val(""); });
	$("#txbSports11").live("click", function() { if ($("#txbSports11").attr("checked") == true) $("#textSport").removeAttr("disabled").focus();else $("#textSport").attr("disabled", "disabled").val(""); });
});
</script>
</asp:Content>
